package com.meida.module.bus.client.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.meida.common.mybatis.annotation.TableAlias;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 用户部门
 *
 * @author flyme
 * @date 2020-12-16
 */
@Data
@Accessors(chain = true)
@TableName("bus_user_dept")
@TableAlias("bud")
@ApiModel(value = "BusUserDept对象", description = "用户部门")
public class BusUserDept {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "userDeptId", type = IdType.ID_WORKER)
    private Long userDeptId;

    @ApiModelProperty(value = "用户Id")
    private Long userId;

    @ApiModelProperty(value = "部门Id")
    private Long deptId;

}
